 <#if authority.is(4) >
<div id="roles_page" style="width:100%;">
</div>
<script type="text/javascript">

var roles;
var pageno = 1;
if (roles) { pageno = roles.findCurrentPage(); }
window.addEvent('domready', function() {
	new MUI.Require({
	  js: [MUI.path.plugins + 'mochaList/List.js'],
	  onload: function(){
		var dataURL = '/data/sc.action';//取数据的url
		var dataURLParams = {"scid":"auth_1","pageno":1};//要传给dataURL的参数
		var instanceName = 'roles';//MUI.List实例名称
		var divId = "role_list";//要填充的div编号
		var columns = [{text:'选择',name:'id',align:'center'},{text:'编号',name:'id'},{text:'角色名',name:'name'},{text:'说明',name:'note'}];//要显示的字段
		if (!roles){
		roles = new MUI.List({
			instanceName:instanceName,
	       	container:'roles_page',
	       	showCheckBox:true,
			showCommand:false,
	       	id:divId,
	       	columns:columns,
	       	dataURL:dataURL,
	       	dataURLParams:dataURLParams,
	       	cbName:'idyyys',
	       	commands:[],
	       	onItemCommand: function(item,self,cmd,img) {},
	       	onItemChecked: function(item,self,cmd,img) {},
	       	onItemSelected: function(item,self,cmd,img) {},
	       	onItemColumnBound: function(item,self,col,td) {}
	   	});//MUI.List
	   	}
	   	roles.findList(pageno);
	  }//onload
	});//MUI.Require
});
</script>
<#else>
您无权访问该页面！
</#if>